********************************************************************************
********************************************************************************
** Robustness analysis 7
** Heterogeneity in regard to primary school type
********************************************************************************
********************************************************************************

** Load data
use "$dataraw_path\data_ftna_publication.dta", clear


eststo rob7_1: areg gpa_ftna_core_sd private##private_psle ///
	female uncommon_name peers_score_core_sd peers_fail_share ///
	peers_as_share gpa_psle_other_sd, ///
	cl(school_id) a(group_id)


* Output
esttab rob7_1 using "$out_path\tableb3.tex", replace se ///
stats(N r2, fmt(%12.3gc) labels("\(N\)" "\(R^2\)")) compress nomtitles ///
starlevels("" 0.01) substitute(\_ _) b(3) ///
/*KEEP*/k(1.private 1.private#1.private_psle1) ///
/*ORDER*/o(1.private 1.private#1.private_psle1) ///
/*LABELS*/varl(1.private "\$Private_s$" ///
1.private#1.private_psle1 "\$Private_s \times Private_p$")
